<?php
	$user_position = $_SESSION['user_position'];
	$user_id = $_SESSION['user_id'];
?>
<ul class='nav nav-tabs' role='tablist'>
	<li role='presentation' class='dropdown'>
		<a class='dropdown-toggle' data-toggle='dropdown'>
			 客户<span class='caret'></span>
		</a>
		 <ul class='dropdown-menu' role='menu'>
			<li role='presentation'><a role='menuitem' tabindex='-1' href='http://<?php echo base_url("index.php/contact_record/new_comment"); ?>'>未处理建议</a></li>
			<li role='presentation'><a role='menuitem' tabindex='-1' href='http://<?php echo base_url("index.php/client/index"); ?>'>潜在客户列表</a></li>
			<li role='presentation'><a role='menuitem' tabindex='-1' href='http://<?php echo base_url("index.php/client/create"); ?>'>新增潜在客户</a></li>
			<li role='presentation'><a role='menuitem' tabindex='-1' href='http://<?php echo base_url("index.php/client/clients_names"); ?>'>客户名列表</a></li>
			<?php
			if ($user_position == 'MKM' or $user_position == 'SAM') {
				echo "<li role='presentation'><a role='menuitem' tabindex='-1' href='http://";
				echo base_url("index.php/contact_record/work_load");
				echo "'>联系状态</a></li>";
			}
			
			if ($user_position == 'SAM' or $user_position == 'MKM') {
				echo "<li role='presentation'><a role='menuitem' tabindex='-1' href='http://";
				echo base_url("index.php/client/list_all");
				echo "'>所有潜在客户</a></li>";
			}
			?>
		 </ul>
    </li>
	
	<li role='presentation' class='dropdown'>
		<a class='dropdown-toggle' data-toggle='dropdown'>
			 报价<span class='caret'></span>
		</a>
		 <ul class='dropdown-menu' role='menu'>
			<li role='presentation'><a role='menuitem' tabindex='-1' href='http://<?php echo base_url("index.php/bid_project_code/"); ?>'>报价项目列表</a></li>
		 </ul>
    </li>
	
	
<?php
	if ($user_position == 'DA') {
		echo "	
		<li role='presentation' class='dropdown'>
			<a class='dropdown-toggle' data-toggle='dropdown'>
				用户<span class='caret'></span>
			</a>
			<ul class='dropdown-menu' role='menu'>
				<li role='presentation'><a role='menuitem' tabindex='-1' href='http://";
		echo base_url("index.php/user/index");
		echo "'>用户列表</a></li>
				<li role='presentation'><a role='menuitem' tabindex='-1' href='http://";
		echo base_url("index.php/user/create");
		echo "'>新增用户</a></li>
			</ul>
    	</li>";
	}
?>
	
	<li role='presentation' class='dropdown'>
		<a class='dropdown-toggle' data-toggle='dropdown'>
			 办公用品<span class='caret'></span>
		</a>
		 <ul class='dropdown-menu' role='menu'>
	       <li role='presentation'><a role='menuitem' tabindex='-1' href='http://<?php echo base_url("index.php/office_item/add_item"); ?>'>增加规格描述</a></li>
		   <li role='presentation'><a role='menuitem' tabindex='-1' href='http://<?php echo base_url("index.php/office_item/show_item"); ?>'>显示规格描述</a></li>
		 </ul>
    </li>

	<li role='presentation' class='dropdown'>
		<a class='dropdown-toggle' data-toggle='dropdown'>
			 其它<span class='caret'></span>
		</a>
		 <ul class='dropdown-menu' role='menu'>
	       <li role='presentation'><a role='menuitem' tabindex='-1' href='http://<?php echo base_url("index.php/welcome/ch_passwd"); ?>'>修改密码</a></li>
		   <li role='presentation'><a role='menuitem' tabindex='-1' href='http://<?php echo base_url("index.php/welcome/logout"); ?>'>注销</a></li>
		 </ul>
    </li>
	
	

</ul>
